// TF_CAXView.h : interface of the CTF_CAXView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_TF_CAXVIEW_H__6401B8D6_62BD_40F9_A019_7E40901F0847__INCLUDED_)
#define AFX_TF_CAXVIEW_H__6401B8D6_62BD_40F9_A019_7E40901F0847__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000




#include "../TF_GLContext/tf_OpenglDC.h"

class CTF_CAXView : public CView
{
protected: // create from serialization only
	CTF_CAXView();
	DECLARE_DYNCREATE(CTF_CAXView)

// Attributes
public:
	CTF_CAXDoc* GetDocument();

// Operations
public:



public:
	virtual void RenderScene(TfOpenGLDC* pDC);


public:
	virtual BOOL GetBox(double& x0,double& y0,double& z0,double& x1,double& y1,double& z1);
	void	Zoom(double dScale);
	void	ZoomAll();
	void	OnViewType(UINT type);
	void	MoveView(double dpx,double dpy);

protected:
	TfOpenGLDC*	m_pGLDC;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTF_CAXView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CTF_CAXView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CTF_CAXView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in TF_CAXView.cpp
inline CTF_CAXDoc* CTF_CAXView::GetDocument()
   { return (CTF_CAXDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TF_CAXVIEW_H__6401B8D6_62BD_40F9_A019_7E40901F0847__INCLUDED_)
